<?php
$this->breadcrumbs=array(
	Yii::t('user','Quản lý tài khoản cá nhân')
);?>

<script type="text/javascript">
$(document).ready(function(){
	$("ul#profile-tabs a[rel='async']").click(function(){
		$.ajax({
			url:$(this).attr('href'),
			context:$(this),
			success:function(data)
			{
				$(this).hide().next().html(data).show();
			}
		});
		return false;
	});
	$("ul#profile-tabs").on('click', 'input.buttonCancel', function(){
		$content_div = $(this).parent().parent().parent().parent();
		$content_div.hide().prev().show();
		return false;
	});
});
</script>

<ul id="profile-tabs">
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('name') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Họ và tên</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'><?php echo $model->name ?></span>
		</a>
		<div class='content'></div>
	</li>
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('username') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Trang cá nhân</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'><?php echo $model->accountUrl ?></span>
		</a>
		<div class='content'></div>
	</li>
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('password') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Mật khẩu</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'><?php echo $model->name ?></span>
		</a>
		<div class='content'></div>
	</li>
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('email') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Email</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'><?php echo $model->email ?></span>
		</a>
		<div class='content'></div>
	</li>	
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('email') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Kết nối tài khoản Facebook</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'><?php echo $model->email ?></span>
		</a>
		<div class='content'></div>
	</li>	
	<li class='clearfix'>
		<a rel="async" href="<?php echo $this->createUrl('email') ?>" class="clearfix pvm phs">
			<span class='itemLabel'>Thông tin khác</span>
			<span class='itemEdit'><?php echo Yii::t('user','Chỉnh sửa') ?></span>
			<span class='itemValue'>Giới tính / Ngày sinh / Phone / Địa chỉ / CMND</span>
		</a>
		<div class='content'></div>
	</li>
</ul>